import java.applet.Applet;
import java.io.IOException;


public class CreteFileApplet extends Applet {
	private String filePath;
	private String fileContent;
	public String getFileContent() {
		return fileContent;
	}

	public void setFileContent(String fileContent) {
		this.fileContent = fileContent;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Override
	public void init() {
		System.out.println("初始化applet");
		
		super.init();
	}

	@Override
	public void start() {
		System.out.println("applet start。。。。。");
		
		System.out.println("applet create file.....");
		java.io.File f = new java.io.File("D:/test.txt");
		if(!f.exists()){try {
			System.out.println("create file open....");
			f.createNewFile();
			System.out.println("create file success!!! path = D:/test.txt");
		} catch (IOException e) {
			e.printStackTrace();
			
		}}
		super.start();
	}


}
